package com.haogu.service;

import com.haogu.entity.DictType;
import com.haogu.entity.User;
import org.springframework.ui.Model;

import javax.servlet.http.HttpSession;
import java.util.Map;

public interface DictTypeService {
    /**
     * 添加字典类型
     * @param dictType
     * @param session
     * @return
     */
    Map addDictType(DictType dictType, HttpSession session);

    /**
     * 查询字典类型分页数据
     * @return
     */
    Map selectDictTypeByPage();

    /**
     * 去修改页面之前的回显
     * @param id
     * @param model
     */
    void toUpdateDictType(Integer id, Model model);

    /**
     * 修改DictType
     * @param dictType
     * @return
     */
    Map updateDictType(DictType dictType, User user);

    /**
     * 删除DictType
     */
    Map delectDictType(Integer id);
}
